<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<div th:fragment="layuiNav">
	<div class="layui-side-scroll">
		<div class="layui-logo" lay-href="home/console.html">
			<img th:src="@{/images/default_user.png}" alt="头像" class="layui-nav-img" >
			<!--<img th:src="${user.portrait} !=null  ? ${user.portrait} :'/static/images/default_user.png'" alt="头像" class="layui-nav-img" >-->
			<span th:text="${user.userAlias}"></span>
		</div>
		<ul id="navigation" class="layui-nav layui-nav-tree" lay-filter="layuiNav">
			<!-- 一级菜单 -->
			<li class="layui-nav-item" th:each="menu : ${menuList}">
				<a th:attr="lay-href=${menu.menuLink}">
					<i th:class="${'layui-icon ' + menu.menuStyle}"></i>
					<cite th:text="${menu.menuName}"></cite>
				</a>
				<!-- 二级菜单 -->
				<dl th:unless="${#lists.isEmpty(menu.children)}" class="layui-nav-child">
					<dd th:each="menu : ${menu.children}">
						<a th:attr="lay-href=${menu.menuLink}">
							<i th:class="${'layui-icon ' + menu.menuStyle}"></i>
							<cite class="layui-fluid" th:text="${menu.menuName}"></cite>
						</a>
						<!-- 三级菜单 -->
						<dl th:unless="${#lists.isEmpty(menu.children)}" class="layui-nav-child">
							<dd th:each="menu : ${menu.children}">
								<a th:attr="lay-href=${menu.menuLink}">
									<i th:class="${'layui-icon ' + menu.menuStyle}"></i>
									<cite class="layui-fluid" th:text="${menu.menuName}"></cite>
								</a>
								<!-- 四级菜单 -->
								<dl th:unless="${#lists.isEmpty(menu.children)}" class="layui-nav-child">
									<dd th:each="menu : ${menu.children}">
										<a th:attr="lay-href=${menu.menuLink}">
											<i th:class="${'layui-icon ' + menu.menuStyle}"></i>
											<cite class="layui-fluid" th:text="${menu.menuName}"></cite>
										</a>
									</dd>
									<!-- 五级菜单 -->
									<dl th:unless="${#lists.isEmpty(menu.children)}" class="layui-nav-child">
										<dd th:each="menu : ${menu.children}">
											<a th:attr="lay-href=${menu.menuLink}">
												<i th:class="${'layui-icon ' + menu.menuStyle}"></i>
												<cite class="layui-fluid" th:text="${menu.menuName}"></cite>
											</a>
										</dd>
									</dl>
								</dl>
							</dd>
						</dl>
					</dd>
				</dl>
			</li>
			<span class="layui-nav-bar"></span>
		</ul>
	</div>
</div>
</html>